import {Component, Input, OnInit} from "@angular/core";
import {FileInfo} from "@shared/models/FileInfo";

@Component({
  selector: 'bby-mkdir-dialog',
  template:
    `
      <div style="margin: 10px 0">
        <p>已选择文件：{{namesStr}}</p>
        <p style="color: red">注意：修改目录的权限会影响到目录中文件的权限</p>
      </div>
      <bby-permission-card [file]="file"></bby-permission-card>
    `
})
export class EditPermissionDialogContent implements OnInit{
  @Input()
  file = new FileInfo()
  names:string[] = []
  namesStr = ''

  ngOnInit(): void {
    this.namesStr=this.names.toString()
  }

}
